package com.wulijie.observer;

/**
 * @Author cui
 * @Data
 */
public class XinlangSite implements Observer{
    private float humidity;
    private float temperature;

    @Override
    public void update(float humidity, float temperature) {
        this.humidity = humidity;
        this.temperature = temperature;
        printBaiduWeather();
    }

    public void printBaiduWeather() {
        System.out.println("XinlangSite");
        System.out.println(this.humidity);
        System.out.println(this.temperature);
    }
}
